<template>
	<view>
		<view class="store_top">
		
			<view class="left" @click="addphoto">
				<view><text>添加</text></view>
				<view><text>店铺LOGO</text></view>
			</view>
			<view class="right">
				<view class="right_top" @click="onStoreMsg">
					<view>
						<text class="store_name">店铺名称</text>
						<text class="gr_name">自定义个人商铺名称</text>
					</view>
					<image src="/static/images/jiantou.png"></image>
				</view>
				<view class="rightt_bottom">
					<text class="store_name">选择身份</text>
					<text class="change">公司/个体户/个人</text>
				</view>
			</view>
		</view>
		
		<view class="store_fw" @click="storeFu">
			<view class="icon">
				<view> <text class="iconfont">&#xe600;</text>服务</view>
			</view>
			<view class="text">
				<view>未开通微商城服务</view>
				<view class="image"><image src="/static/images/jiantou.png"></image></view>
			</view>
		</view>

		<view class="grid">
			<view @click="onshopDecoration">
				<image src="/static/images/zhuangxiu.png"></image>
				<view><text>店铺装修</text></view>
			</view>
			<view @click="serviceStore">
				<image src="/static/images/guanlian.png"></image>
				<view><text>服务门店</text></view>
			</view>
			<view @click="goStore">
				<image src="/static/images/dianpu_cope.png" style="width:60rpx;height:60rpx"></image>
				<view><text>进入店铺</text></view>
			</view>
		</view>

		<view class="list">
			<view class="list_item">
				<view class="item_left"><text>主体认证</text></view>
				<view class="item_right" @click="goAuthentication">
					<text>未认证</text>
					<view><image src="/static/images/jiantou.png"></image></view>
				</view>
			</view>
			<view class="list_item">
				<view class="item_left"><text>支付结算</text></view>
				<view class="item_right" @click="goPay">
					<text>去完善</text>
					<view><image src="/static/images/jiantou.png"></image></view>
				</view>
			</view>
			<view class="list_item">
				<view class="item_left"><text>等级认证</text></view>
				<view class="item_right" @click="goGrade">
					<text>去完善</text>
					<view><image src="/static/images/jiantou.png"></image></view>
				</view>
			</view>
			<view class="list_item">
				<view class="item_left"><text>员工管理</text></view>
				<view class="item_right" @click="goStaff">
					<text>去添加</text>
					<view><image src="/static/images/jiantou.png"></image></view>
				</view>
			</view>
			<view class="list_item">
				<view class="item_left"><text>担保交易</text></view>
				<view class="item_right" @click="goTransaction">
					<text>未开通</text>
					<view><image src="/static/images/jiantou.png"></image></view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {ShopInfor} from '@/api/index.js'
export default {
	data() {
		return {};
	},
	methods:{
		// 去个人店铺
		onStoreMsg(){
			uni.navigateTo({
				url:'../../pagesA/store_msg/store_msg'
			}),
			console.log("123");
		},
		// 去店铺装修
		onshopDecoration(){
			uni.navigateTo({
				url:'../../pagesA/store_decoration/store_decoration'
			})
		},
		//去选择商城版本
		storeFu(){
			uni.navigateTo({
				url:'../../pagesA/store_openServe/store_openServe'
			})
		},
		//获取店铺的基本信息
		getShopInfor(){
			ShopInfor().then(res=>{
				console.log(res)
			}).catch(err=>{
				console.log(err)
			})
		}
		
	},
	created(){
		this.getShopInfor()
	}
};
</script>
<style>
@import './store.css';
</style>
